Veery testing
code=yes
Grab my profile page. Currently, the default is to return HTML only.
curl http://veeryapiperl.soupmode.com/api/posts/profile
This produces the same thing.
curl http://veeryapiperl.soupmode.com/api/posts/profile/?text=html
{
"status":200,
"description":"OK",
"post":
{
"author":"JohnR",
"reading_time":0,
"created_at":"2015/02/11 14:54:49",
"updated_at":"2015/04/21 15:56:10",
"slug":"profile",
"post_type":"article",
"title":"Profile",
"word_count":16,
"html":"\n
\n\nmy profile page that contains nothing because i want to blend into the background.
\n\n
\n"
}
}
Get the markup. The _rev is returned for updating. Should this be returned, however, only if the client calling app is logged in?
curl http://veeryapiperl.soupmode.com/api/posts/profile/?text=markup
{
"status":200,
"description":"OK",
"post":
{
"_rev":"3-97b3bc9434ea346a49b7709c6dd1e9fd",
"title":"Profile",
"slug":"profile",
"post_type":"article",
"markup":"# Profile\r\n\r\nmy profile page that contains nothing because i want to blend into the background.\r\n\r\n"
}
}
Get the markup and the HTML.
curl http://veeryapiperl.soupmode.com/api/posts/profile/?text=full
{
"status":200,
"description":"OK",
"post":
{
"author":"JohnR",
"reading_time":0,
"created_at":"2015/02/11 14:54:49",
"post_type":"article",
"title":"Profile",
"word_count":16
"updated_at":"2015/04/21 15:56:10",
"slug":"profile",
"markup":"# Profile\r\n\r\nmy profile page that contains nothing because i want to blend into the background.\r\n\r\n",
"html":"\n\n\nmy profile page that contains nothing because i want to blend into the background.
\n\n
\n",
}
}